package com.zhilehuo.mapper;

import com.zhilehuo.model.po.Word;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WordMapper {


    void insertWords(@Param("words") List<Word> allWords);

    List<Word> selectByParagraphId(Integer paragraphId);


    void updatePinyin(@Param("paragraphId") Integer paragraphId,
                      @Param("wordsId") Integer wordsId,
                      @Param("pinyin") String pinyin);
}
